﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;
using Lswweb.Model;
using Lswweb.Common;
using Lswweb.Domain;

namespace Lswweb.Controls
{
    public class CurrencyDropDownList : DropDownList
    {
        protected override void OnInit(EventArgs e)
        {
            this.DataSource = CurrencyServices.FindAll();
            this.DataTextField = "Symbol";
            this.DataValueField = "Id";
            this.DataBind();
        }
    }
}
